package cn.melonlib.cores.commons.model.support.number_id;

import cn.melonlib.cores.commons.model.entity.IRecordEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 记录类型表扩展
 */
@MappedSuperclass
@Data
@EqualsAndHashCode(callSuper = true)

public class MelonLibLongRecordEntity extends MelonLibLongIdEntity implements IRecordEntity {

    /**
     * 所有者(创建者)
     */
    @ModelComment("创建人快照信息")
    @Column(length = 2000)
    private String creator;

    @ModelComment("创建人ID")
    private String creatorId;

    @ModelComment("创建人账号")
    private String creatorCode;

    @ModelComment("创建人姓名")
    private String creatorName;
    /**
     * 创建时间
     */
    @ModelComment("创建时间")
    private Long createDateTime = System.currentTimeMillis();

    /**
     * 最后修改时间
     */
    @ModelComment("最后修改时间")
    private Long lastModifiedDateTime = System.currentTimeMillis();


    /**
     * 排序，默认安装当前时间戳
     */
    @ModelComment("默认排序字段")
    private Long sortNum=System.currentTimeMillis();


    @ModelComment("是否删除")
    private Boolean removed;
}
